_applyOptions(options) {
for (const option in options)
- options[option] = options[option].deep_unpack();
+ options[option] = options[option].deepUnpack();
if (options['pipeline'] !== undefined)
this._pipelineString = options['pipeline'];
if (!this.serviceIsForeground(serviceName))
return;
- this.emit('show-choice-list', serviceName, promptMessage, list.deep_unpack());
+ this.emit('show-choice-list', serviceName, promptMessage, list.deepUnpack());
}
_onInfo(client, serviceName, info) {
Gio.DBusCallFlags.NONE,
-1, null);
- let version = result.deep_unpack()[0].deep_unpack();
+ let version = result.deepUnpack()[0].deepUnpack();
return haveSystemd() && versionCompare('3.5.91', version);
} catch (e) {
return false;
this._reloadSignalQuality();
this._proxy_3gpp.connect('g-properties-changed', (proxy, properties) => {
- let unpacked = properties.deep_unpack();
+ let unpacked = properties.deepUnpack();
if ('OperatorName' in unpacked || 'OperatorCode' in unpacked)
this._reload3gppOperatorName();
});
this._reload3gppOperatorName();
this._proxy_cdma.connect('g-properties-changed', (proxy, properties) => {
- let unpacked = properties.deep_unpack();
+ let unpacked = properties.deepUnpack();
if ('Nid' in unpacked || 'Sid' in unpacked)
this._reloadCdmaOperatorName();
});
}
_onLocationsChanged() {
- let locations = this._settings.get_value('locations').deep_unpack();
+ let locations = this._settings.get_value('locations').deepUnpack();
let serialized = locations.shift();
let mostRecentLocation = null;
this._request = Gio.DBusExportedObject.wrapJSObject(RequestIface, this);
for (let option in options)
- options[option] = options[option].deep_unpack();
+ options[option] = options[option].deepUnpack();
this._buildLayout(title, description, body, options);
}
this._locations = [];
let world = GWeather.Location.get_world();
- let clocks = this._settings.get_value('locations').deep_unpack();
+ let clocks = this._settings.get_value('locations').deepUnpack();
for (let i = 0; i < clocks.length; i++) {
let l = world.deserialize(clocks[i]);
if (l && l.get_timezone() != null)
_updateState() {
let metadata = {};
for (let prop in this._playerProxy.Metadata)
- metadata[prop] = this._playerProxy.Metadata[prop].deep_unpack();
+ metadata[prop] = this._playerProxy.Metadata[prop].deepUnpack();
// Validate according to the spec; some clients send buggy metadata:
// https://www.freedesktop.org/wiki/Specifications/mpris-spec/metadata
for (let hint in hints) {
// unpack the variants
- hints[hint] = hints[hint].deep_unpack();
+ hints[hint] = hints[hint].deepUnpack();
}
hints = Params.parse(hints, { urgency: Urgency.NORMAL }, true);
}
if (buttons) {
- buttons.deep_unpack().forEach(button => {
+ buttons.deepUnpack().forEach(button => {
this.addAction(button.label.unpack(), () => {
this._onButtonClicked(button);
});
try {
let value = global.get_persistent_state('a(sa(sv))', 'notifications');
if (value) {
- let sources = value.deep_unpack();
+ let sources = value.deepUnpack();
sources.forEach(([appId, notifications]) => {
if (notifications.length == 0)
return;
}
notifications.forEach(([notificationId, notification]) => {
- source.addNotification(notificationId, notification.deep_unpack(), false);
+ source.addNotification(notificationId, notification.deepUnpack(), false);
});
});
}
let monitor = this._monitorManager.get_monitor_for_connector(connector);
if (monitor == -1)
continue;
- this._monitorLabels.get(monitor).push(params[connector].deep_unpack());
+ this._monitorLabels.get(monitor).push(params[connector].deepUnpack());
}
for (let [monitor, labels] of this._monitorLabels.entries()) {
for (let prop in metas[i]) {
// we can use the serialized icon variant directly
if (prop !== 'icon')
- metas[i][prop] = metas[i][prop].deep_unpack();
+ metas[i][prop] = metas[i][prop].deepUnpack();
}
resultMetas.push({
}
for (let param in params)
- params[param] = params[param].deep_unpack();
+ params[param] = params[param].deepUnpack();
const {
connector,
'GetAll',
new GLib.Variant('(s)', [this._BUS_IFACE]),
null, Gio.DBusCallFlags.NONE, -1, null);
- [props] = result.deep_unpack();
+ [props] = result.deepUnpack();
} catch (e) {
log(`Could not get properties from ${this._BUS_NAME}`);
return;
let nSources = sources.n_children();
for (let i = 0; i < nSources; i++) {
- let [type, id] = sources.get_child_value(i).deep_unpack();
+ let [type, id] = sources.get_child_value(i).deepUnpack();
sourcesList.push({ type, id });
}
return sourcesList;
/* eslint-enable camelcase */
_changed(proxy, properties) {
- for (const prop in properties.deep_unpack()) {
+ for (const prop in properties.deepUnpack()) {
switch (prop) {
case 'AirplaneMode':
this.notify('airplane-mode');
}
function do_action_toggle(action) {
- action.set_state(GLib.Variant.new('b', !action.state.deep_unpack()));
+ action.set_state(GLib.Variant.new('b', !action.state.deepUnpack()));
print ("Toggled");
}